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.

Skid

Members
  • Joined

  • Last visited

  1. 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.
  2. Cool, I think I can see how I can get that to work, thanks for the help
  3. 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

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.