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.

Iggi666

Members
  • Joined

  • Last visited

  1. I tried to use this. For example: Timer timer=new Timer(1000,new ActionListener(){ public void actionPerformed(ActionEvent ev) { if(Minecraft.getMinecraft().getIntegratedServer() != null){ System.out.println("123"); }else{ System.out.println("321"); } } }); Timer timer=new Timer(1000,new ActionListener(){ public void actionPerformed(ActionEvent ev) { if(Minecraft.getMinecraft().isSingleplayer()){ System.out.println("123"); }else{ System.out.println("321"); } } }); Timer timer=new Timer(1000,new ActionListener(){ public void actionPerformed(ActionEvent ev) { if((Minecraft.getMinecraft().isIntegratedServerRunning()){ System.out.println("123"); }else{ System.out.println("321"); } } }); Always output is "321". When Im playing on server, or in singleplayer or just looking on Menu) I call timer in public void load(FMLInitializationEvent event).
  2. Hello. How do I know if the player is on the server? I use timer and I want to check every 10 seconds if player is on the server. It does not matter which server. Mod is Client side only.

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.