More Forge Events#291
Conversation
Event to Manage CraftingManager Matching Recipes. Can be used for various things like time and zone based recipes or limit an item craft to certain users.
|
👍 |
|
Fun for ACT's! No worries, this looks awesome, just don't forget you may get 'fake players' |
|
fake players???? |
|
Fake players are simulated players for doing things like using items, Such as BuildCraft using [BuildCraft] iirc, for some of it's machines, and ComputerCraft using [ComputerCraft] Or Turtle, depending on Config for Turtles mining and using items. |
|
A player that is simply a random subclass of EntityPlayer. Used in situations like above. Beware of assuming that you are going to get a valid logged in player that's registered to the world. |
|
perhaps a playername with special characters so we can identify them? and provide different permission check.. or something... |
|
player.getEntityName() != null will generally suffice you could go further and use MinecraftServer.getServer().getConfigurationManager().playerEntityList.contains(player) |
|
I wonder... I could probably just ask auto-crafting machine modders to manually check the permission.. its not very hard... but wtvr,.. thats nice :D LEX!!! I NEED THIS!!!! |
And added a test class.
This SMP Event is Fired when the server sends the player info to client, it can be used to send additional packets regarding the player, ie. player titles, guild crests, races and even more.
|
I would also really like to see this added, as I really don't want to be forced to make a coremod. |
|
@mrTJO Send is irregular form so its 2nd form (Past) is Sent PlayerSpawnSendedEvent would be correct in english by changing its name to: PlayerSpawnSentEvent EDIT: |
Event to Manage CraftingManager Matching Recipes.
Can be used for various things like time and zone based recipes or limit
an item craft to certain users.