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.

syns

Members
  • Joined

  • Last visited

  1. Wrong Section, My Apologies.
  2. I'm having a crash issue with Tab Completion on Online Players with a command. This is what was implemented, followed by a separate file named OnlinePlayers.java @Override public List<String> addTabCompletionOptions(final ICommandSender sender, final String[] args, final BlockPos pos) { return (args.length >= 1) ? getListOfStringsMatchingLastWord(args, OnlinePlayers.getListOfPlayerUsernames()) : null; } OnlinePlayers.java: package me.syns.slashping; import net.minecraft.client.network.*; import java.util.*; public class OnlinePlayers { public static String[] getListOfPlayerUsernames() { final String[] users = null; final Collection<NetworkPlayerInfo> players = Ping.mc.getNetHandler().getPlayerInfoMap(); final List<String> list = new ArrayList<>(); for (final NetworkPlayerInfo info : players) { list.add(info.getGameProfile().getName()); } return list.toArray(new String[0]); } } If you need anymore information, let me know. I've attempted various other methods and keep looking around as to why it's crashing. This is a mod being developed for 1.8.9, and soon to be ported to 1.12.2 (after I get some help regarding the Tab Completion)

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.