Delete, please

Status
This thread has been locked.

Yllow_Developing

Feedback score
0
Posts
17
Reactions
11
Resources
0
Hi, i want to know how many € i can sell my core sources
Core features:
* Pearl Glitch Fixed
* Anti Pot-lag
* Custom /list command
* Custom /suicide command
* Custom gamemode command
* ShowIp command
* Command to see player inventory (Invsee)
* Ignore Command
* Clear chat command
* Custom fly command
* Heal command
* Some blocked commands like: /me, /bukkit:me, /back...etc
* Chat and permissions (depend from PermissionEx, no essentials need)
* Join and quit message removed
* Staff chat
* Admin chat
Proof of ownership: http://prntscr.com/jmzlgh
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Kieraaaan

Plugin Developer
Premium
Feedback score
7
Posts
463
Reactions
222
Resources
0
The code he showed is decompiled. When using a decompiler like JD-GUI, Luyten, etc. They all add final, this and unnecessary casts.

public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) {
Here is evidence of the unnecessary use of final statements.

if (item != null) {
playerinv.addItem(new ItemStack[] { item });
}
Unnecessary null checks...

final Damageable d = (Damageable)target;
final Inventory playerinv = Bukkit.createInventory((InventoryHolder)null, 54, String.valueOf(target.getName()) + "'s Inventory");
Here is the use of unnecessary casting and also use of String.valueOf() when it is already a String...

foodmeta.setDisplayName(new StringBuilder().append(ChatColor.GOLD).append(p.getFoodLevel()).toString());
Something I have never seen (for setting the title of an item), but unnecessary to say the least...
 
Last edited:
Status
This thread has been locked.
Top