Small parameter change

This commit is contained in:
Magnus Ulf 2019-02-04 12:36:16 +01:00
parent 9e217533fc
commit 1c1bf36e26
2 changed files with 4 additions and 3 deletions

View File

@ -15,7 +15,7 @@ public class CmdMassiveCoreUsysWorld extends MassiveCoreCommand
{
// Parameters
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");
}

View File

@ -3,6 +3,7 @@ package com.massivecraft.massivecore.command;
import com.massivecraft.massivecore.command.type.Type;
import com.massivecraft.massivecore.command.type.primitive.TypeInteger;
import com.massivecraft.massivecore.mson.Mson;
import com.massivecraft.massivecore.util.Txt;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@ -183,7 +184,7 @@ public class Parameter<T>
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;
}
@ -195,7 +196,7 @@ public class Parameter<T>
public static Parameter<Integer> getPage()
{
// 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");
}
}