Delete

Status
This thread has been locked.

Allatory

Banned
Feedback score
1
Posts
4
Reactions
1
Resources
0
Delete
 

Attachments

  • 7ca1df846bf72151c1d00f4dc7e3545d.png
    7ca1df846bf72151c1d00f4dc7e3545d.png
    13.7 KB · Views: 108
  • upload_2017-6-7_20-33-17.png
    upload_2017-6-7_20-33-17.png
    704.9 KB · Views: 108
  • upload_2017-6-7_20-33-32.png
    upload_2017-6-7_20-33-32.png
    319.2 KB · Views: 105
  • upload_2017-6-7_20-34-1.png
    upload_2017-6-7_20-34-1.png
    319.2 KB · Views: 26
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Allatory

Banned
Feedback score
1
Posts
4
Reactions
1
Resources
0
e92e61da0d058c85d025925b7bcb4222.png


This is the changelog :D
 

Attachments

  • e92e61da0d058c85d025925b7bcb4222.png
    e92e61da0d058c85d025925b7bcb4222.png
    16.6 KB · Views: 141
Banned forever. Reason: Ban Evading (Dyvour)

Allatory

Banned
Feedback score
1
Posts
4
Reactions
1
Resources
0
Code Snippets @

Code:
public static void createCooldown( String k) {
        if (Cooldowns.cooldown.containsKey(k)) {
            throw new IllegalArgumentException("Cooldown already exists.");
        }
        Cooldowns.cooldown.put(k, new HashMap<UUID, Long>());
    }

    public static HashMap<UUID, Long> getCooldownMap( String k) {
        if (Cooldowns.cooldown.containsKey(k)) {
            return Cooldowns.cooldown.get(k);
        }
        return null;
    }

    public static void addCooldown( String k,  Player p,  int seconds) {
        if (!Cooldowns.cooldown.containsKey(k)) {
            throw new IllegalArgumentException(k + " does not exist");
        }
         long next = System.currentTimeMillis() + seconds * 100L;
        Cooldowns.cooldown.get(k).put(p.getUniqueId(), next);
    }

    public static boolean isOnCooldown( String k,  Player p) {
        return Cooldowns.cooldown.containsKey(k) && Cooldowns.cooldown.get(k).containsKey(p.getUniqueId()) && System.currentTimeMillis() <= Cooldowns.cooldown.get(k).get(p.getUniqueId());
    }

    public static int getCooldownForPlayerInt( String k,  Player p) {
        return (int)(Cooldowns.cooldown.get(k).get(p.getUniqueId()) - System.currentTimeMillis()) / 1000;
    }

    public static long getCooldownForPlayerLong( String k,  Player p) {
        return (int)(Cooldowns.cooldown.get(k).get(p.getUniqueId()) - System.currentTimeMillis());
    }

    public static void removeCooldown( String k,  Player p) {
        if (!Cooldowns.cooldown.containsKey(k)) {
            throw new IllegalArgumentException(k + " does not exist");
        }
        Cooldowns.cooldown.get(k).remove(p.getUniqueId());
    }

Code:
public class ItemStackBuilder {
    public static ItemStack get(Material material, int amount, short datavalue, String displayName, List<String> lore) {
        ItemStack item = new ItemStack(material, amount, datavalue);
        ItemMeta itemmeta = item.getItemMeta();
        itemmeta.setDisplayName(ChatColor.translateAlternateColorCodes('&', displayName));
        itemmeta.setLore(lore);
        item.setItemMeta(itemmeta);
        return item;
    }
}

if you need more let me know
 
Banned forever. Reason: Ban Evading (Dyvour)

Sniper

Software Developer
Supreme
Feedback score
65
Posts
1,312
Reactions
695
Resources
0
Code Snippets @

Code:
public static void createCooldown( String k) {
        if (Cooldowns.cooldown.containsKey(k)) {
            throw new IllegalArgumentException("Cooldown already exists.");
        }
        Cooldowns.cooldown.put(k, new HashMap<UUID, Long>());
    }

    public static HashMap<UUID, Long> getCooldownMap( String k) {
        if (Cooldowns.cooldown.containsKey(k)) {
            return Cooldowns.cooldown.get(k);
        }
        return null;
    }

    public static void addCooldown( String k,  Player p,  int seconds) {
        if (!Cooldowns.cooldown.containsKey(k)) {
            throw new IllegalArgumentException(k + " does not exist");
        }
         long next = System.currentTimeMillis() + seconds * 100L;
        Cooldowns.cooldown.get(k).put(p.getUniqueId(), next);
    }

    public static boolean isOnCooldown( String k,  Player p) {
        return Cooldowns.cooldown.containsKey(k) && Cooldowns.cooldown.get(k).containsKey(p.getUniqueId()) && System.currentTimeMillis() <= Cooldowns.cooldown.get(k).get(p.getUniqueId());
    }

    public static int getCooldownForPlayerInt( String k,  Player p) {
        return (int)(Cooldowns.cooldown.get(k).get(p.getUniqueId()) - System.currentTimeMillis()) / 1000;
    }

    public static long getCooldownForPlayerLong( String k,  Player p) {
        return (int)(Cooldowns.cooldown.get(k).get(p.getUniqueId()) - System.currentTimeMillis());
    }

    public static void removeCooldown( String k,  Player p) {
        if (!Cooldowns.cooldown.containsKey(k)) {
            throw new IllegalArgumentException(k + " does not exist");
        }
        Cooldowns.cooldown.get(k).remove(p.getUniqueId());
    }

Code:
public class ItemStackBuilder {
    public static ItemStack get(Material material, int amount, short datavalue, String displayName, List<String> lore) {
        ItemStack item = new ItemStack(material, amount, datavalue);
        ItemMeta itemmeta = item.getItemMeta();
        itemmeta.setDisplayName(ChatColor.translateAlternateColorCodes('&', displayName));
        itemmeta.setLore(lore);
        item.setItemMeta(itemmeta);
        return item;
    }
}

if you need more let me know
That's a terrible ItemStackBuilder, I could see it being super annoying on your part x) I use a better one in all my plugins.
 

Allatory

Banned
Feedback score
1
Posts
4
Reactions
1
Resources
0
public class ItemStackBuilder {
public static ItemStack get(Material material, int amount, short datavalue, String displayName, List<String> lore) {
ItemStack item = new ItemStack(material, amount, datavalue);
ItemMeta itemmeta = item.getItemMeta();
itemmeta.setDisplayName(ChatColor.translateAlternateColorCodes('&', displayName));
itemmeta.setLore(lore);
item.setItemMeta(itemmeta);
return item;
}
}


Lmfao public Flowz ItemStackBuilder from the Fuck Al3ways leak learn to code.
Also using Glaedr you skid and also using Flowz Items LMFAO

1st this isnt gleadr 2nd I have permission to use this util 3rd i can code
 
Banned forever. Reason: Ban Evading (Dyvour)
Status
This thread has been locked.
Top