Hey, im making a minigame, and im trying to prevent team killing, so i wanted to know if theres an event for when a player hits another player so i can check and cancel it if needed
i only have access to the latest.log in the hosting file manager ;-; but it looks like the fml-server-latest i have on my local test server, so i hope it helps
https://ufile.io/95d2b (i cut it short because there are like 30k more lines of that error)
Hey, i run a server, with several mods, and suddenly today this happened:
java.io.UTFDataFormatException: encoded string too long: 65536 bytes
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:364)
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:323)
at net.minecraft.nbt.NBTTagString.func_74734_a(NBTTagString.java:29)
at net.minecraft.nbt.NBTTagCompound.func_150298_a(NBTTagCompound.java:386)
at net.minecraft.nbt.NBTTagCompound.func_74734_a(NBTTagCompound.java:44)
at net.minecraft.nbt.NBTTagList.func_74734_a(NBTTagList.java:32)
at net.minecraft.nbt.NBTTagCompound.func_150298_a(NBTTagCompound.java:386)
at net.minecraft.nbt.NBTTagCompound.func_74734_a(NBTTagCompound.java:44)
at net.minecraft.nbt.NBTTagCompound.func_150298_a(NBTTagCompound.java:386)
at net.minecraft.nbt.NBTTagCompound.func_74734_a(NBTTagCompound.java:44)
at net.minecraft.nbt.CompressedStreamTools.func_150663_a(CompressedStreamTools.java:149)
at net.minecraft.nbt.CompressedStreamTools.func_74800_a(CompressedStreamTools.java:139)
at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75821_a(AnvilChunkLoader.java:288)
at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75814_c(AnvilChunkLoader.java:274)
at net.minecraft.world.storage.ThreadedFileIOBase.func_75736_b(ThreadedFileIOBase.java:34)
at net.minecraft.world.storage.ThreadedFileIOBase.run(ThreadedFileIOBase.java:26)
at java.lang.Thread.run(Thread.java:745)
well, i have an item that it's config allows you to choose a texture from a list, and that texture is chosen on the server that you are joining, so i thought i could register the item with the specific texture when i join the texture, if not, is there a way to just change the texture of an item when you join a server?
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
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?