Hot Summer Deals are Here!
Celebrate with up to 99% off on 17,300 resources
03
Days
02
Hours
45
Mins
26
Secs

Hub Plugin

Status
This thread has been locked.

Xeron

Digital Artist
Premium
Feedback score
0
Posts
1,040
Reactions
554
Resources
0
Hi,

I'm just looking for a plugin that only lets Op's break/place blocks. Not even users with '*' are allowed, just OP's. This is for a hub. $1.

If interested just comment.

Cheers,

Platon.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Xeron

Digital Artist
Premium
Feedback score
0
Posts
1,040
Reactions
554
Resources
0
Yeah so I'm still searching as Dell's one didn't work.
 

Turkinator001

Feedback score
0
Posts
2
Reactions
0
Resources
0
Hey Soldatu, I'm trying to learn Java, could you send me the code for this plugin when you've made it. I'd like to see how other programmers write these, thanks.
 

Blowns

Premium
Feedback score
1
Posts
1,014
Reactions
526
Resources
0
Code:
  @EventHandler
  public void onBlockBreak(BlockBreakEvent event)
  {
      Player p = event.getPlayer();
    if (!p.isOp()); {
      event.setCancelled(true);
      p.sendMessage(ChatColor.RED + "You can't break blocks.");
    }
  }
}
 

Synic

Programmer
Premium
Feedback score
0
Posts
490
Reactions
250
Resources
0
Code:
  @EventHandler
  public void onBlockBreak(BlockBreakEvent event)
  {
      Player p = event.getPlayer();
    if (!p.isOp()); {
      event.setCancelled(true);
      p.sendMessage(ChatColor.RED + "You can't break blocks.");
    }
  }
}
oooh you put a semicolon after "if(!p.isOp())" tsk tsk xD
 

Skionz

ogminecraft.com
Premium
Feedback score
1
Posts
1,544
Reactions
1,527
Resources
0
Hey Soldatu, I'm trying to learn Java, could you send me the code for this plugin when you've made it. I'd like to see how other programmers write these, thanks.
You can't learn Java from Bukkit. If you truly want to learn Java, learn from a book. In my opinion, you should start using Bukkit when you understand naming conventions, the syntax (obviously), encapsulation, mutators, accusers, helper methods, primitive types, sockets, and maybe concurrency and SQL (They come together because SQL is so slow). Reflection can also be useful, but there has never been a situation for me where I used it outside of Bukkit. There is probably a ton of other stuff I have missed, but I suggest this book http://www.amazon.com/Fundamentals-Java-TM-Computer-Essentials/dp/0538744928
 

MrLolEthan

Feedback score
0
Posts
68
Reactions
33
Resources
0
You can't learn Java from Bukkit. If you truly want to learn Java, learn from a book. In my opinion, you should start using Bukkit when you understand naming conventions, the syntax (obviously), encapsulation, mutators, accusers, helper methods, primitive types, sockets, and maybe concurrency and SQL (They come together because SQL is so slow). Reflection can also be useful, but there has never been a situation for me where I used it outside of Bukkit. There is probably a ton of other stuff I have missed, but I suggest this book http://www.amazon.com/Fundamentals-Java-TM-Computer-Essentials/dp/0538744928
I recommend having a decent understanding of computer sciences as a whole. It's really useful to actually understand what your computer is doing, not just that it "works."
 

Julian

Feedback score
0
Posts
19
Reactions
25
Resources
0
Yes i tested it i even sent him source it worked for me
I would assume it's because you are compiling with a newer or older version of Java and it isn't compatible with his server.
 
Status
This thread has been locked.
Top