Small parameter change
This commit is contained in:
parent
9e217533fc
commit
1c1bf36e26
@ -15,7 +15,7 @@ public class CmdMassiveCoreUsysWorld extends MassiveCoreCommand
|
|||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeString.get(), "world").setDesc("the world to move");
|
this.addParameter(TypeString.get(), "world").setDesc("the world to move");
|
||||||
this.addParameter(TypeString.get(), "universe").setDesc("the universe to move the world ro");
|
this.addParameter(TypeString.get(), "universe").setDesc("the universe to move the world to");
|
||||||
this.addParameter(TypeMultiverse.get(), "multiverse").setDesc("the multiverse of the universe to move the world to");
|
this.addParameter(TypeMultiverse.get(), "multiverse").setDesc("the multiverse of the universe to move the world to");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ package com.massivecraft.massivecore.command;
|
|||||||
import com.massivecraft.massivecore.command.type.Type;
|
import com.massivecraft.massivecore.command.type.Type;
|
||||||
import com.massivecraft.massivecore.command.type.primitive.TypeInteger;
|
import com.massivecraft.massivecore.command.type.primitive.TypeInteger;
|
||||||
import com.massivecraft.massivecore.mson.Mson;
|
import com.massivecraft.massivecore.mson.Mson;
|
||||||
|
import com.massivecraft.massivecore.util.Txt;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -183,7 +184,7 @@ public class Parameter<T>
|
|||||||
ret = mson("[" + this.getName() + def + "]");
|
ret = mson("[" + this.getName() + def + "]");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.hasDesc()) ret = ret.tooltip(this.getDesc());
|
if (this.hasDesc()) ret = ret.tooltip(Txt.upperCaseFirst(this.getDesc()));
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -195,7 +196,7 @@ public class Parameter<T>
|
|||||||
public static Parameter<Integer> getPage()
|
public static Parameter<Integer> getPage()
|
||||||
{
|
{
|
||||||
// We can't use a singleton because people might want to set a description.
|
// We can't use a singleton because people might want to set a description.
|
||||||
return new Parameter<>(1, TypeInteger.get(), "page", "1");
|
return new Parameter<>(1, TypeInteger.get(), "page", "1").setDesc("page");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user