1.1.1-STABLE
/f coords - displays your coords and current world to your faction /f showclaims - Lists all your claims in every world /f lowpower - lists players with power under max /f tntfill <radius> <amount> - fills tnt in a radius and amount, hooks into /f tntbank if you're a mod or higher. Some of these commands require permissions please see the permissions page here https://www.prosavage.net/wiki/permissions
This commit is contained in:
42
src/main/java/com/massivecraft/factions/cmd/CmdCoords.java
Normal file
42
src/main/java/com/massivecraft/factions/cmd/CmdCoords.java
Normal file
@@ -0,0 +1,42 @@
|
||||
package com.massivecraft.factions.cmd;
|
||||
|
||||
import com.massivecraft.factions.FPlayer;
|
||||
import com.massivecraft.factions.struct.Permission;
|
||||
import com.massivecraft.factions.zcore.util.TL;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
public class CmdCoords extends FCommand {
|
||||
|
||||
public CmdCoords(){
|
||||
super();
|
||||
this.aliases.add("coords");
|
||||
this.aliases.add("coord");
|
||||
|
||||
this.permission = Permission.COORD.node;
|
||||
this.disableOnLock = true;
|
||||
|
||||
senderMustBePlayer = true;
|
||||
senderMustBeMember = true;
|
||||
senderMustBeModerator = false;
|
||||
senderMustBeColeader = false;
|
||||
senderMustBeAdmin = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void perform(){
|
||||
Location location = fme.getPlayer().getLocation();
|
||||
String message = TL.COMMAND_COORDS_MESSAGE.toString().replace("{player}",fme.getPlayer().getDisplayName()).replace("{x}",(int) location.getX() + "")
|
||||
.replace("{y}",(int) location.getY() + "").replace("{z}",(int) location.getZ() + "").replace("{world}",location.getWorld().getName());
|
||||
for (FPlayer fPlayer : fme.getFaction().getFPlayers()){
|
||||
fPlayer.sendMessage(message);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public TL getUsageTranslation() {
|
||||
return TL.COMMAND_COORDS_DESCRIPTION;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user