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.

凡越 孟

Members
  • Joined

  • Last visited

Everything posted by 凡越 孟

  1. I've tried overriding the getRequiredPermissionLevel() method to return 0, but only operators are still able to use this command. The code is as follows: public class CommandTest extends CommandBase { public String getCommandName() { return "test"; } public String getCommandUsage(ICommandSender p_71518_1_) { return null; } public void processCommand(ICommandSender p_71515_1_, String[] p_71515_2_) { p_71515_1_.addChatMessage(new ChatComponentText("abc")); } public int getRequiredPermissionLevel(){ return 0; } } public class start { public static final String MODID = "register"; public static final String VERSION = "1.0"; @EventHandler public void init(FMLInitializationEvent event) { } @EventHandler public void serverStarting(FMLServerStartingEvent event) { event.registerServerCommand(new CommandTest()); } } thanks to everybody

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.