Skip to content

Commit

Permalink
v7
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbudda committed Mar 9, 2017
1 parent c40fb77 commit 0333dd1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion config-instructions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ climbey:
#The list of blocks for use with include/exclude block mode. use name or id. Specify data with :data. i.e. red wool is 'wool:14' or '35:14'. uses mojang block names, not spigot materials.
blocklist:
- wool:0
- dirt
- dirt
- grass
3 changes: 2 additions & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ climbey:
#The list of blocks for use with include/exclude block mode. use name or id. Specify data with :data. i.e. red wool is 'wool:14' or '35:14'. uses mojang block names, not spigot materials.
blocklist:
- wool:0
- dirt
- dirt
- grass
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Vivecraft-Spigot-Extensions
version: '1.11-r7-pre'
version: '1.11-r7'
main: org.vivecraft.VSE
website: http://www.vivecraft.org/
author: jrbudda, jaron780
Expand Down
4 changes: 3 additions & 1 deletion src/org/vivecraft/VSE.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.bukkit.event.entity.CreatureSpawnEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.inventory.ItemFlag;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.ShapedRecipe;
import org.bukkit.inventory.meta.ItemMeta;
Expand Down Expand Up @@ -83,6 +84,7 @@ public void onEnable() {
ItemMeta meta = is.getItemMeta();
meta.setDisplayName("Jump Boots");
meta.setUnbreakable(true);
meta.addItemFlags(ItemFlag.HIDE_UNBREAKABLE);
is.setItemMeta(meta);
ShapedRecipe recipe = new ShapedRecipe(is);
recipe.shape("B", "S");
Expand All @@ -94,6 +96,7 @@ public void onEnable() {
ItemMeta meta2 = is2.getItemMeta();
meta2.setDisplayName("Climb Claws");
meta2.setUnbreakable(true);
meta.addItemFlags(ItemFlag.HIDE_UNBREAKABLE);
is2.setItemMeta(meta2);
ShapedRecipe recipe2 = new ShapedRecipe(is2);
recipe2.shape("E E", "S S");
Expand Down Expand Up @@ -303,7 +306,6 @@ public void sendPosData() {

@Override
public void onDisable() {
saveConfig();
getServer().getScheduler().cancelTask(task);
super.onDisable();
}
Expand Down
2 changes: 1 addition & 1 deletion src/org/vivecraft/listeners/VivecraftNetworkListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ public void onPluginMessageReceived(String channel, Player sender, byte[] payloa
m = 1;
else if(mode.trim().equalsIgnoreCase("exclude"))
m = 2;
} else {
}
objectOutputStream.writeByte(m);
objectOutputStream.writeObject(vse.blocklist);
Expand All @@ -147,7 +148,6 @@ else if(mode.trim().equalsIgnoreCase("exclude"))
for (byte b : p) {
vse.getLogger().info(b+ " ");
}
vse.getLogger().info("sent climb " + p.length);
objectOutputStream.close();

}
Expand Down

0 comments on commit 0333dd1

Please sign in to comment.