- a
vswap
OpenVZ VPS or a KVM/Xen/VMware VPS with Ubuntu Server 14.04 LTS installed (architecture doesn't matter), or a dedicated server - patience and a willingness to learn
- approximately 10 minutes of time
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
#This set of commands, /msg, /r, and /cmsg replaces the built in message system | |
#and allows for colored messages by mods, so they are more prominent | |
mods:/cmsg $player [$] = >>> | |
tmsg($player, concat('[', color(red), player(), color(white), '->Me] ', color(green), $)) | |
msg(concat('[', color(red), 'Me', color(white), '->', pinfo($player, 0), '] ', color(green), $)) | |
store_value(concat('last_message_', pinfo($player, 0)), player()) | |
<<< | |
all:/msg $player [$] = >>> | |
try( |
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
/msg $player $shit = >>> | |
msg('[me -> ' pinfo($player, 0), '] ' $) | |
tmsg($player, '[me <- ' pinfo($player, 0), '] ' $) | |
<<< |
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
@EventHandler | |
public void onBlockBreak(BlockBreakEvent event) { | |
Block block = event.getBlock(); | |
Player player = event.getPlayer(); | |
if (block.getType() == Material.DIAMOND_ORE) { | |
player.sendMessage("I can has diamonds!"); | |
} | |
} |
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
messageStaff("Message"); | |
public void messageStaff(String message) { | |
for (Player p : getServer().getOnlinePlayers()) { | |
if (p.hasPermission("your.permission")) { | |
p.sendMessage(message); |
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
this.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() { | |
@Override | |
public void run() { | |
checkForIron(); | |
} | |
}, 20L, 20L); | |
public void checkForIron() { | |
for (Player p : getServer().getOnlinePlayers()) { | |
if (ArmourAbilities.hasIron(p)) { //Checks if player is wearing full set of iron |
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 void chainHat() { | |
ShapedRecipe chainHat = new ShapedRecipe(new ItemStack(Material.CHAINMAIL_HELMET)); | |
chainHat.shape("ISI", | |
"SXS", | |
"XXX"); | |
chainHat.setIngredient('I', Material.IRON_INGOT); | |
chainHat.setIngredient('S', Material.STRING); | |
chainHat.setIngredient('X', Material.AIR); | |
Util.logger("Loaded recipe for: Chainmail Helmet"); | |
} |
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 class Events implements Listener { | |
HashMap<String, Long> cooldownJump = new HashMap<String, Long>(); | |
HashMap<String, Long> cooldownSponge = new HashMap<String, Long>(); | |
public JMod plugin; | |
public Events(JMod instance) { | |
plugin = instance; | |
} |
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
*:/lsd = >>> | |
_assertperm(restricted, 1) | |
set_peffect(player(), 9, 1, 30) | |
msg('§1§k-§5§k-§a§k-§f§k-§4§k-§8§k-§0§k-§c§k-§f§k-§1§k-§9§k-§a§k-§3§k-§0§k-§4§k-§f§k-§b§k-§d§k-§9§k-§d§k-§f§k-§e§k-§0§k-§d§k-§d§k-§a§k-§3§k-§0§k-§4§k-§a§k-§a§k-§2§k-§3§k-§e§k-§7§k-§5§k-§1§k-§f§k-§8§k-§4§k-§4§k-§0§k-§d§k-§9§k-§3§k-§4§k-§5§k-§6§k-§e§k-§2§k-§e§k-§f§k-§4§k-§c§k-§0§k-§b§k-§a§k-§8§k-§4§k-§4§k-§d§k-§6§k-§4§k-§a§k-§a§k-§8§k-§2§k-§9§k-§b§k-§b§k-§0§k-§f§k-§e§k-§6§k-§6§k-§3§k-§c§k-§8§k-§0§k-§8§k-§d§k-§8§k-§d§k-§6§k-§5§k-§7§k-§f§k-§a§k-§9§k-§e§k-§d§k-§c§k-§b§k-§d§k-§0§k-§a§k-§6§k-§6§k-§a§k-§d§k-§e§k-§7§k-§a§k-§d§k-§3§k-§4§k-§3§k-§8§k-§7§k-§3§k-§4§k-§9§k-§a§k-§b§k-§a§k-§8§k-§b§k-§2§k-§3§k-§e§k-§7§k-§3§k-§4§k-§7§k-§6§k-§0§k-§3§k-§d§k-§8§k-§e§k-§c§k-§5§k-§9§k-§2§k-§5§k-§f§k-§2§k-§8§k-§8§k-§9§k-§b§k-§d§k-§a§k-§e§k-§6§k-§7§k-§8§k-§b§k-§e§k-§1§k-§9§k-§d§k-§1§k-§b§k-§1§k-§b§k-§f§k-§f§k-§b§k-§d§k-§2§k-§e§k-§6§k-§e§k-§7§k-§1§k-§f§k-§4§k-§4§k-§c§k-§9§k-§b§k-§a§k-§a§k-§8§k-§b§k-§8§k-§5§k-§3§k-§e§k-§f§k-§b§k-§4§k-§4§k-§d§k-§5§k-§a§k-§f§k-§ |
"How do I get started with Node?" is a commonly heard question in #Node.js. This gist is an attempt to compile some of the answers to that question. It's a perpetual work-in-progress.
And if this list didn't quite answer your questions, I'm available for tutoring and code review! A donation is also welcome :)
Before you get started learning about JavaScript and Node.js, there's one very important article you need to read: Teach Yourself Programming in Ten Years.
Understand that it's going to take time to learn Node.js, just like it would take time to learn any other specialized topic - and that you're not going to learn effectively just by reading things, or following tutorials or courses. _Get out there and build things!
OlderNewer