This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.button{ | |
background: #FFF; | |
border: 2px solid black; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
div{font-size:150%} | |
#underline{ | |
border-top: 5px solid black; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String format(List<String> list){ | |
boolean isFirst = true; | |
StringBuilder sb = new StringBuilder(); | |
for(String entry : list) { | |
if (isFirst) { | |
isFirst = false; | |
} else { | |
sb.append(","); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lastHit.put(victim.getName(), attacker.getName()); | |
final Player vic = victim.getPlayer(); | |
final BukkitScheduler scheduler = Bukkit.getScheduler(); | |
if (lastHitId.containsKey(vic.getName())) { | |
int taskId = lastHitId.get(vic.getName()); | |
if (scheduler.isCurrentlyRunning(taskId)) { | |
scheduler.cancelTask(taskId); | |
} | |
} | |
BukkitTask task = scheduler.runTaskLater(plugin, new BukkitRunnable() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Not use complete sentences. | |
2) Use the enter button as a period. | |
3) Use txt spch. | |
4) Use away messages (especially auto-away). | |
5) Ping people who don't need your attention. | |
6) Make 'your mom' jokes. | |
7) spammmmmmmmmmmm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parameters: | |
Count: This is literal. The count parameter specifies how many particles to spawn at once | |
with these exact same parameters. | |
Spread: The starting position of each particle is a normal number with mean of the Location | |
and standard deviation of the Spread, e.g. (Norm(Loc.X, Spread.X), Norm(Loc.Y, | |
Spread.Y), Norm(Loc.Z, Spread.Z)). This means that 68% of the particles will be | |
within the bounding box of +/- 1*Spread, 95% will be within +/- 2*Spread, and 99.7% | |
will be within +/- 3*Spread for each coordinate. | |
Speed: The effect of this is determined by each particle. |