Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

squirlemaster

Members
  • Joined

  • Last visited

  1. Item registry is where Yakob_Sword is and which one do I use?
  2. Yes my name is set to squirlemaster in the run config.
  3. 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)); } } }
  4. I know Java just not that piece. I know how to make GUIs and such but not how to do things with events.
  5. I still don't get it. Can someone please link me to an example or provide one?
  6. I don't know. What should I replace player with?
  7. When I use playername I get an error for inventory. Playername is the variable I set Event.palyer.getCommandSenderName(); to.
  8. I just forgot for a second. Forgot .equals.
  9. My final question, how to I give the player an item?
  10. 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.
  11. I forgot the event. Didn't know I needed the. I'm new to this. Haven't used events much.
  12. I think that I am just confuse. I learn better from examples.
  13. 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?
  14. Is what i am suppose to do is type player.getCommandSenderName(); because that is not working?

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.