Posted February 26, 20178 yr Hey, i added a command and in the canCommandSenderUseCommand i just put in return true; but still on the bukkit server the none ops dont have permission to use it. is there something im missing here?
February 26, 20178 yr If you're talking about making a bukket plugin this isn't the forum for it. This is the forge modder support forum. If you are using forge, show your code.
February 26, 20178 yr Author 5 minutes ago, Awesome_Spider said: If you're talking about making a bukket plugin this isn't the forum for it. This is the forge modder support forum. If you are using forge, show your code. of course its forge, its just a kcauldron server so i wanted you guys to know its also partily bukkit. the code is: package com.drpiggy.eventsystem.commands; import java.util.ArrayList; import java.util.List; import com.drpiggy.eventsystem.data.DataManager; import net.minecraft.command.ICommand; import net.minecraft.command.ICommandSender; import net.minecraft.util.ChatComponentText; public class CommandJoinTeam implements ICommand { private final List<String> aliases; public CommandJoinTeam() { aliases = new ArrayList<String>(); aliases.add("jointeam"); aliases.add("joint"); } @Override public int compareTo(Object paramT) { return 0; } @Override public String getCommandName() { return "jointeam"; } @Override public String getCommandUsage(ICommandSender sender) { return "jointeam <team name>"; } @Override public List<String> getCommandAliases() { return this.aliases; } @Override public void processCommand(ICommandSender sender, String[] arguments) { if (arguments.length == 0) { sender.addChatMessage(new ChatComponentText("[EventSystem] Please enter the name of the team!")); return; } if (!DataManager.AddTeamPlayer(arguments[0], sender.getEntityWorld().getPlayerEntityByName(sender.getCommandSenderName()))) { sender.addChatMessage(new ChatComponentText("[EventSystem] That team does not exist!")); return; } sender.addChatMessage(new ChatComponentText("[EventSystem] Team changed!")); DataManager.get(sender.getEntityWorld()).markDirty(); } @Override public boolean canCommandSenderUseCommand(ICommandSender sender) { return true; } @Override public List<String> addTabCompletionOptions(ICommandSender sender, String[] arguments) { return null; } @Override public boolean isUsernameIndex(String[] p_82358_1_, int p_82358_2_) { return false; } } but non op players cant use it
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.