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.

Time6628

Members
  • Joined

  • Last visited

Everything posted by Time6628

  1. I saw that but I'm not quite sure about how to go at setting the position.
  2. Post all the cats!
  3. I'm attempting to make a mod that set's a player's position if they are offline with a command. Here's what I have so far: SaveHandlerMP sh; private List<String> aliases; @Override public String getCommandName() { return "otphere"; } @Override public String getCommandUsage(ICommandSender p_71518_1_) { return "/otphere <player>"; } @Override public List getCommandAliases() { aliases.add("otph"); return aliases; } @Override public void processCommand(ICommandSender sender, String[] args) { if (canCommandSenderUseCommand(sender)) { try { sh = (SaveHandlerMP) sender.getEntityWorld().getSaveHandler(); File playerDir = new File(sh.getWorldDirectory(), "playerdata"); UUID u = UUID.nameUUIDFromBytes(("OfflinePlayer:" + args[0]).getBytes(Charsets.UTF_); File pd = new File(playerDir, u + ".dat"); NBTTagCompound nbt; nbt = CompressedStreamTools.read(pd); //not sure what the values of the postitions are D: nbt.setDouble("posX", sender.getPlayerCoordinates().posX);; } catch (Exception ex) { ex.printStackTrace(); } } }
  4. How would I use it if it wasn't dead though? xP
  5. How would I go about using the @BukkitPluginRef interface?

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.