Skid
Members-
Posts
3 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I am new!
Skid's Achievements
Tree Puncher (2/8)
0
Reputation
-
Yello, Quick question, just looking to see if there is a better way of doing this: List<EntityPlayerMP> players = ModLoader.getMinecraftServerInstance().worldServers[0].playerEntities; for (int t = 0; t < players.size(); t++) { players.get(t).sendChatToPlayer("All player statistics have been reset."); } That code fragment is from a server command I've added that keeps track server and player uptime and death statistics, that comes from a sub command that resets the player side of the statistics. Basically I couldn't find if there was a simple command that would broadcast to all players or if what I've got up there is a reasonable way of doing it.
-
Yello, I'm looking to setup a server for a couple of people with a specific ruleset with the end goal being to destroy the opposing teams beds, and then kill them. The idea requires that the players can't craft beds in a standard world where the materials to craft one will exist. I can think of two ways this could be done. A) Remove the crafting recipe for beds so they can't be crafted anymore. B) Detect when someone crafts a bed and ban them from the server (breaching the games rules) Now, I know I can detect players crafting a bed using ICraftingHandler, however I would prefer to use option A, but don't know where to start looking for how to remove the recipe or if its even possible, so any pointers in the right direction would be helpful. With option B I've not yet found how to get a mod to ban a player, but I've not looked that hard yet, if A is not possible and you can point me in the right direction to get B working then you would save me a bit of time. Thanks