FREE HUB UTILITY PLUGIN

Status
This thread has been locked.

VapeHard

Banned
Feedback score
0
Posts
486
Reactions
164
Resources
0
I'm learning how to code **just a bit I don't want to code hcf cores or anti cheats**

About
So I'm deciding to give a hub utility plugin out for free that I made so you could give me some feedback or just for general use.​

Includes
  • Setspawn command (spawn.set permission)
  • Antifall (prevents players from falling into void and dieing **tp's to spawn)
  • AntiPlace/AntiDestroy (Op has permission to bypass **no use for a real permission**)
  • NoDamage(No bypass permission)
  • NoHunger(no bypass permission)
  • AntiPickUp/Drop(Op has permission to bypass)
  • JoinEvent(teleports to spawn, sethealth/hunger full,clears inv, clears armor, disables join message)
  • LeaveEvent(disables leave message)
  • AntiMobSpawn (prevents mobs from spawning)
  • Ps, feel free to decompile it :)




Idea's
Config.yml (more edits)
Null message = custom message
Disable chat
Broadcast command [?]

 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Clyde

Premium
Feedback score
44
Posts
1,574
Reactions
1,220
Resources
0
Note to you other "developers (Except a select few)"

He's dead new to Java and how to use the spigot API, so give him a break instead of doing your usual duty of shit posting a thread. If you're gonna say something here, give tips, not shit.
 

Conflicted

drip or drown
Premium
Feedback score
12
Posts
273
Reactions
142
Resources
0
If the variable isn't being accessed by any other classes make it private, in this case with your 'HubUtilities plugin' you should make that 'private HubUtilities plugin'.
 

VapeHard

Banned
Feedback score
0
Posts
486
Reactions
164
Resources
0
If the variable isn't being accessed by any other classes make it private, in this case with your 'HubUtilities plugin' you should make that 'private HubUtilities plugin'.
Alright thanks IntelliJ was already telling me that :)[DOUBLEPOST=1513459412][/DOUBLEPOST]
Update 12/16/2017 (v2)
[+] New config.yml
[+] Customizable join/leave message
[+] Customizable join/leave broadcast
[+] Ability to enable/disable the above^​
 
Last edited:
Banned forever. Reason: Scamming (https://builtbybit.com/threads/zurp-scam-report.538580/#post-4350164)

Kieraaaan

Plugin Developer
Premium
Feedback score
7
Posts
463
Reactions
222
Resources
0
Here's a broadcast class for you my friend :)
Code:
package kr.kieran;

import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;

import kr.kieran.Messages;

public class Alert extends JavaPlugin {

    public Alert plugin;

    @Override
    public void onEnable() {
        Bukkit.getLogger().info("Alert 1.0 enabled.");

        reloadConfig();
        getConfig().options().copyDefaults(true);
        saveDefaultConfig();
    }

    @Override
    public void onDisable() {
        plugin = null;
        Bukkit.getLogger().info("Alert 1.0 disabled.");
    }

    @Override
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
        if (!sender.hasPermission("alert.send")) {
            sender.sendMessage(Messages.colour(getConfig().getString("NoPermission")));
            return true;
        }

        if (cmd.getName().equalsIgnoreCase("alert")) {
            if (args.length == 0) {
                sender.sendMessage(Messages.colour(getConfig().getString("InvalidSyntax")));
                return true;
            }

            if ((args.length == 1) && args[0].equalsIgnoreCase("reload")) {
                if (!sender.hasPermission("alert.reload")) {
                    sender.sendMessage(Messages.colour(getConfig().getString("NoPermission")));
                    return true;
                }
                reloadConfig();
                sender.sendMessage(Messages.colour(getConfig().getString("ConfigReloaded")));
                return true;
            }

            StringBuilder str = new StringBuilder();
            for (int i = 0; i < args.length; i++) {
                str.append(args[i] + " ");
            }

            String m = str.toString();
            Bukkit.broadcastMessage(Messages.colour(getConfig().getString("Prefix") + " " + m));
        }

        return true;
    }

}

And the messages class:
Code:
package kr.kieran;

import org.bukkit.ChatColor;

public class Messages {
   
    public static String colour(final String string) {
        return ChatColor.translateAlternateColorCodes('&', string);
    }

}

I'm not sure if you learn from spoonfeeding , i kind of did but here you go anyways
 

VapeHard

Banned
Feedback score
0
Posts
486
Reactions
164
Resources
0
Banned forever. Reason: Scamming (https://builtbybit.com/threads/zurp-scam-report.538580/#post-4350164)

VapeHard

Banned
Feedback score
0
Posts
486
Reactions
164
Resources
0
Here's a broadcast class for you my friend :)
Code:
package kr.kieran;

import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;

import kr.kieran.Messages;

public class Alert extends JavaPlugin {

    public Alert plugin;

    @Override
    public void onEnable() {
        Bukkit.getLogger().info("Alert 1.0 enabled.");

        reloadConfig();
        getConfig().options().copyDefaults(true);
        saveDefaultConfig();
    }

    @Override
    public void onDisable() {
        plugin = null;
        Bukkit.getLogger().info("Alert 1.0 disabled.");
    }

    @Override
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
        if (!sender.hasPermission("alert.send")) {
            sender.sendMessage(Messages.colour(getConfig().getString("NoPermission")));
            return true;
        }

        if (cmd.getName().equalsIgnoreCase("alert")) {
            if (args.length == 0) {
                sender.sendMessage(Messages.colour(getConfig().getString("InvalidSyntax")));
                return true;
            }

            if ((args.length == 1) && args[0].equalsIgnoreCase("reload")) {
                if (!sender.hasPermission("alert.reload")) {
                    sender.sendMessage(Messages.colour(getConfig().getString("NoPermission")));
                    return true;
                }
                reloadConfig();
                sender.sendMessage(Messages.colour(getConfig().getString("ConfigReloaded")));
                return true;
            }

            StringBuilder str = new StringBuilder();
            for (int i = 0; i < args.length; i++) {
                str.append(args[i] + " ");
            }

            String m = str.toString();
            Bukkit.broadcastMessage(Messages.colour(getConfig().getString("Prefix") + " " + m));
        }

        return true;
    }

}

And the messages class:
Code:
package kr.kieran;

import org.bukkit.ChatColor;

public class Messages {
  
    public static String colour(final String string) {
        return ChatColor.translateAlternateColorCodes('&', string);
    }

}

I'm not sure if you learn from spoonfeeding , i kind of did but here you go anyways
I completely missed this but thanks!
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/zurp-scam-report.538580/#post-4350164)
Status
This thread has been locked.
Top