
squirlemaster
Members-
Posts
22 -
Joined
-
Last visited
Everything posted by squirlemaster
-
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
Item registry is where Yakob_Sword is and which one do I use? -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
Yes my name is set to squirlemaster in the run config. -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
It didn't work. Here is what I have: public class EventHookContainerClass extends ItemRegistry{ @EventHandler public void playerLogginEvent(PlayerLoggedInEvent Event){ String playername = Event.player.getCommandSenderName(); String squirlemaster = "squirlemaster"; String Builder_BRP = "Builder_BRP"; if (playername.equals(squirlemaster)){ Event.player.inventory.addItemStackToInventory(new ItemStack(YAKOB_SWORD, 1)); } } } -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
I know Java just not that piece. I know how to make GUIs and such but not how to do things with events. -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
I still don't get it. Can someone please link me to an example or provide one? -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
I don't know. What should I replace player with? -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
When I use playername I get an error for inventory. Playername is the variable I set Event.palyer.getCommandSenderName(); to. -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
I get an error on player. -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
I just forgot for a second. Forgot .equals. -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
My final question, how to I give the player an item? -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
How do I compair the name that was given by the event to squirlemaster or BUilder_BRP because when I try to do it with an if statement it says the it can't convert a boolean to a string but all my variables are strings? I fixed it nevermind. -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
I forgot the event. Didn't know I needed the. I'm new to this. Haven't used events much. -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
I think that I am just confuse. I learn better from examples. -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
I know Java, I think I'm just not reading it right. Could you point me to a video tutorial because those are what I learn from the best? -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
Is what i am suppose to do is type player.getCommandSenderName(); because that is not working? -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
I think the we have both confused each other. Right now I have an event that is triggered when a player logs into the world or server. I want it so that when that player logs in it gets their username. If their username is squirlemaster of Builder_BRP I want it to give them an item. How do I do that? -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
Could you post an example? -
[1.7.2]How do I tell what a players name is?
squirlemaster replied to squirlemaster's topic in Modder Support
I am having some trouble. What do I put before getCommandSenderName();? -
I am making a mod that when a player joins the world it detects what their name is and if they have a certain name it gives them an item. How would I go about doing that?
-
[Solved][1.7.2]How do I detect when a player joins a world?
squirlemaster replied to squirlemaster's topic in Modder Support
Thanks guys. I'll try it soon.