mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-22 14:23:09 +02:00
More Cleanup :: add TODO comments
This commit is contained in:
@@ -21,7 +21,7 @@ import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class EssentialsSign
|
||||
{
|
||||
private static final Set<Material> EMPTY_SET = new HashSet<Material>(); // Would an Enum be better here?
|
||||
private static final Set<Material> EMPTY_SET = new HashSet<Material>();
|
||||
protected transient final String signName;
|
||||
|
||||
public EssentialsSign(final String signName)
|
||||
|
@@ -35,6 +35,6 @@ public class SignConfig implements StorageObject
|
||||
public int getSignUsePerSecond()
|
||||
{
|
||||
|
||||
return signUsesPerSecond > 0 ? signUsesPerSecond : 1; //This needs to be ported from 2.9
|
||||
return signUsesPerSecond > 0 ? signUsesPerSecond : 1; //TODO: This needs to be ported from 2.9
|
||||
}
|
||||
}
|
||||
|
@@ -34,7 +34,7 @@ public class SignFree extends EssentialsSign
|
||||
}
|
||||
|
||||
item.setAmount(item.getType().getMaxStackSize());
|
||||
InventoryWorkaround.addItems(player.getPlayer().getInventory(), item); //Netbeans doesn't seem to like the addItems call, even though it appears valid.
|
||||
InventoryWorkaround.addItems(player.getPlayer().getInventory(), item); //TODO: Netbeans doesn't seem to like the addItems call, even though it appears valid.
|
||||
player.sendMessage("Item added to your inventory.");
|
||||
player.getPlayer().updateInventory();
|
||||
//TODO: wait for a fix in bukkit
|
||||
|
@@ -43,7 +43,7 @@ public class SignGameMode extends EssentialsSign
|
||||
}
|
||||
charge.isAffordableFor(player);
|
||||
|
||||
//this needs to be fixed
|
||||
//TODO: this needs to be fixed
|
||||
player.getPlayer().setGameMode(player.getPlayer().getGameMode() == GameMode.SURVIVAL ? GameMode.CREATIVE : GameMode.SURVIVAL);
|
||||
player.sendMessage(_("gameMode", _(player.getPlayer().getGameMode().toString().toLowerCase(Locale.ENGLISH)), player.getPlayer().getDisplayName()));
|
||||
charge.charge(player);
|
||||
|
Reference in New Issue
Block a user