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.

Featured Replies

  • Author

So I swapped to CommandBase and I have to say its a bit simpler. I mean a server-side command. It seems that by default you must have OP to use them

  • Author

When It auto-implemented the needed methods checkPermissions never appeared. Also what would be the necessary checks? Sorry if I sound like a "noob" I'm used to Spigot.

  • Author

I think I misunderstood you or the otherway around, but here is what I have so far. I extended CommandBase, but let Eclipse automatically add everything

public class Commands extends CommandBase{
ICommandManager icommandmanager;
 HashMap<String, HashMap<String, Integer>> plyrStats;

 public Commands(HashMap<String, HashMap<String, Integer>> plyrStats){
   this.plyrStats = plyrStats;
 }

@Override
public String getCommandName(){
	return "resetstats";
}
@Override
public String getCommandUsage(ICommandSender icommandsender){
	return "ResetStats";
}
@Override
public void processCommand(ICommandSender icommandsender, String[] args) {
	resetStats((EntityPlayer) icommandsender);
} 
}

  • Author

Sorry, but could you show me what you mean? Every time I try to override checkPermission it says that it is not a proper method and removes @Override

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.