Skip to content

Instantly share code, notes, and snippets.

@Cuthmf
Cuthmf / SimpleScoreboard.java
Created September 27, 2016 23:57 — forked from mkotb/SimpleScoreboard.java
Non-flickering scoreboard implementation; create scoreboards with ease.
import com.google.common.base.Charsets;
import com.google.common.base.Splitter;
import com.google.common.collect.Lists;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
import org.bukkit.scoreboard.*;
import java.lang.reflect.Constructor;
@Cuthmf
Cuthmf / SistemaDePontos.java
Last active September 1, 2016 02:45
Sistema De Pontos ( Cuthmf )
public static void main(String[] args) {
Map<String,Integer> map = new HashMap<>();
map.put("Maria", 900);
map.put("Joao", 1000);
map.put("Fernanda", 424);
List<Entry<String, Integer>> entries = new ArrayList<>(map.entrySet());
Collections.sort(entries, new Comparator<Entry<String, Integer>>() {