-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
346 additions
and
5 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,191 @@ | ||
# Events | ||
> Haha yes. | ||
Events are categorized into three. Good, passive, and bad. | ||
|
||
## Table of Contents | ||
- [Good](#good) | ||
- [Passive](#passive) | ||
- [Bad](#bad) | ||
|
||
## Good | ||
|
||
### Beef | ||
- **Description**: Gives you 16 steak. | ||
- **History** | ||
- **v1.0.0**: Added. | ||
|
||
### Diamond | ||
- **Description**: Gives you a diamond. | ||
- **History** | ||
- **v1.1.0**: Added. | ||
|
||
### Diamond Pickaxe | ||
- **Description**: Gives you a diamond pickaxe. | ||
- **History** | ||
- **v1.0.0**: Added. | ||
|
||
### Full Heal | ||
- **Description**: Heals you. | ||
- **History** | ||
- **v1.1.0**: Added. | ||
|
||
### Full Hunger | ||
- **Description**: Fills your saturation and hunger. | ||
- **History** | ||
- **v1.1.0**: Added. | ||
|
||
### Haste | ||
- **Description**: Applies max haste for the duration of the event. | ||
- **History** | ||
- **v1.0.0**: Added, but disabled because it doesn't work. | ||
- **v1.1.0**: Fixed, and enabled. | ||
|
||
### Nice XP | ||
- **Description**: **Sets** your XP to 69. | ||
- **History** | ||
- **v1.1.0**: Added. | ||
|
||
## Passive | ||
|
||
### Aw man? | ||
- **Description**: Plays a creeper hissing sound. | ||
- **History** | ||
- **v1.0.0**: Added. | ||
|
||
### ~~Chat Kick~~ | ||
- **Description**: Kicks you for spamming when you send any message. | ||
- **History** | ||
- **v1.1.0**: Added, and currently disabled because it doesn't work. | ||
|
||
### Gardener | ||
- **Description**: Gives you 16 of *a lot* of different flowers and decoration plants. | ||
- **History** | ||
- **v1.0.0**: Added. | ||
|
||
### H | ||
- **Description**: Gives you a H banner. | ||
- **History** | ||
- **v1.0.0**: Added. | ||
|
||
### Tree | ||
- **Description**: Summons a tree where you are standing. | ||
- **History** | ||
- **v1.1.0**: Added. | ||
|
||
## Bad | ||
|
||
### Anvil | ||
- **Description**: Places an anvil above you. | ||
- **History** | ||
- **v1.0.0**: Added. | ||
|
||
### Aw man. | ||
- **Description**: Spawns a creeper above you. | ||
- **History** | ||
- **v1.0.0**: Added. | ||
|
||
### Bedrock Feet | ||
- **Description**: Places bedrock under where you are standing. | ||
- **History** | ||
- **v1.0.0**: Added. | ||
|
||
### Blindness | ||
- **Description**: Applies blindness for the duration of the event. | ||
- **History** | ||
- **v1.0.0**: Added, but disabled because it doesn't work. | ||
- **v1.1.0**: Fixed, and enabled. | ||
|
||
### Butterfingers | ||
- **Description**: Drops the currently held item. | ||
- **History** | ||
- **v1.0.0**: Added. | ||
|
||
### ClearLag | ||
- **Description**: Kills all items on the ground. | ||
- **History** | ||
- **v1.1.0**: Added. | ||
|
||
### Explosive Beds | ||
- **Description**: Any beds clicked will explode. | ||
- **History** | ||
- **v1.1.0**: Added. | ||
|
||
### Fire Trail | ||
- **Description**: Fire will be set under your feet for the duration of the event. Even if you extinguish it. | ||
- **History** | ||
- **v1.1.0**: Added. | ||
|
||
### Food Poisoning | ||
- **Description**: All food eaten will apply the hunger effect for 30 seconds. | ||
- **History** | ||
- **v1.1.0**: Added. | ||
|
||
### Half a Heart | ||
- **Description**: Sets your HP to half a heart. | ||
- **History** | ||
- **v1.0.0**: Added. | ||
|
||
### Hard | ||
- **Description**: Sets the world difficulty to Hard for the duration of the event. | ||
- **History** | ||
- **v1.1.0**: Added. | ||
|
||
### Hot | ||
- **Description**: Sets fire under your feet one time only. | ||
- **History** | ||
- **v1.0.0**: Added. | ||
|
||
### I am speed. | ||
- **Description**: Applies max speed for the duration of the event. | ||
- **History** | ||
- **v1.0.0**: Added, but disabled because it doesn't work. | ||
- **v1.1.0**: Fixed, and enabled. | ||
|
||
### Jump | ||
- **Description**: Applies max jump boost for the duration of the event. | ||
- **History** | ||
- **v1.0.0**: Added, but disabled because it doesn't work. | ||
- **v1.1.0**: Fixed, and enabled. | ||
|
||
### Mining Fatigue | ||
- **Description**: Applies max mining fatigue for the duration of the event. | ||
- **History** | ||
- **v1.0.0**: Added, but disabled because it doesn't work. | ||
- **v1.1.0**: Fixed, and enabled. | ||
|
||
### Skydive | ||
- **Description**: Teleports you 100 blocks up. | ||
- **History** | ||
- **v1.0.0**: Added. | ||
|
||
### Sky Lava | ||
- **Description**: Sets one lava source block at Y=255 where you are standing. | ||
- **History** | ||
- **v1.0.0**: Added. | ||
|
||
### Slippery Buckets | ||
- **Description**: Any buckets emptied will have their contents emptied at your feet. | ||
- **History** | ||
- **v1.1.0**: Added. | ||
|
||
### Trip | ||
- **Description**: Drops your entire inventory on the ground. | ||
- **History** | ||
- **v1.0.0**: Added. | ||
- **v1.0.1**: Fixed duplication glitch involving the armor and off hand item. | ||
|
||
### Zero Hunger | ||
- **Description**: Sets your hunger and saturation to zero. | ||
- **History** | ||
- **v1.1.0**: Added. | ||
|
||
### Zero XP | ||
- **Description**: Sets your XP to zero. | ||
- **History** | ||
- **v1.1.0**: Added. | ||
|
||
### Zeus | ||
- **Description**: Strikes you with lightning. | ||
- **History** | ||
- **v1.0.0**: Added. |
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 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
20 changes: 20 additions & 0 deletions
20
src/main/java/com/netlify/hparcells/chaos/events/FullHealEvent.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.netlify.hparcells.chaos.events; | ||
|
||
import com.netlify.hparcells.chaos.Chaos; | ||
import com.netlify.hparcells.chaos.ChaosEvent; | ||
import org.bukkit.Bukkit; | ||
import org.bukkit.entity.Player; | ||
|
||
public class FullHealEvent extends ChaosEvent { | ||
public void onEnable(String username, Chaos plugin) { | ||
Player target = (Bukkit.getServer().getPlayer(username)); | ||
|
||
if(target != null) { | ||
target.setHealth(20); | ||
} | ||
} | ||
|
||
public String getName() { | ||
return "Full Heal"; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/netlify/hparcells/chaos/events/FullHungerEvent.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.netlify.hparcells.chaos.events; | ||
|
||
import com.netlify.hparcells.chaos.Chaos; | ||
import com.netlify.hparcells.chaos.ChaosEvent; | ||
import org.bukkit.Bukkit; | ||
import org.bukkit.entity.Player; | ||
|
||
public class FullHungerEvent extends ChaosEvent { | ||
public void onEnable(String username, Chaos plugin) { | ||
Player target = (Bukkit.getServer().getPlayer(username)); | ||
|
||
if(target != null) { | ||
target.setFoodLevel(20); | ||
target.setSaturation(20f); | ||
} | ||
} | ||
|
||
public String getName() { | ||
return "Full Hunger"; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/netlify/hparcells/chaos/events/ZeroHungerEvent.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.netlify.hparcells.chaos.events; | ||
|
||
import com.netlify.hparcells.chaos.Chaos; | ||
import com.netlify.hparcells.chaos.ChaosEvent; | ||
import org.bukkit.Bukkit; | ||
import org.bukkit.entity.Player; | ||
|
||
public class ZeroHungerEvent extends ChaosEvent { | ||
public void onEnable(String username, Chaos plugin) { | ||
Player target = (Bukkit.getServer().getPlayer(username)); | ||
|
||
if(target != null) { | ||
target.setFoodLevel(0); | ||
target.setSaturation(0f); | ||
} | ||
} | ||
|
||
public String getName() { | ||
return "Zero Hunger"; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/netlify/hparcells/chaos/events/chatkick/ChatKickEvent.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.netlify.hparcells.chaos.events.chatkick; | ||
|
||
import com.netlify.hparcells.chaos.Chaos; | ||
import com.netlify.hparcells.chaos.ChaosEvent; | ||
import org.bukkit.event.HandlerList; | ||
|
||
public class ChatKickEvent extends ChaosEvent { | ||
private ChatKickListener chatKickListener = new ChatKickListener(); | ||
|
||
public void onEnable(String username, Chaos plugin) { | ||
plugin.getServer().getPluginManager().registerEvents(chatKickListener, plugin); | ||
} | ||
|
||
public void onDisable(String username, Chaos plugin) { | ||
HandlerList.unregisterAll(chatKickListener); | ||
} | ||
|
||
public String getName() { | ||
return "Chat Kick"; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/netlify/hparcells/chaos/events/chatkick/ChatKickListener.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.netlify.hparcells.chaos.events.chatkick; | ||
|
||
import org.bukkit.event.EventHandler; | ||
import org.bukkit.event.Listener; | ||
import org.bukkit.event.player.AsyncPlayerChatEvent; | ||
|
||
public class ChatKickListener implements Listener { | ||
@EventHandler | ||
public void onAsyncPlayerChat(AsyncPlayerChatEvent event) { | ||
event.getPlayer().kickPlayer("Kicked for spamming."); | ||
} | ||
} |
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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/netlify/hparcells/chaos/events/foodpoisoning/FoodPoisoningEvent.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.netlify.hparcells.chaos.events.foodpoisoning; | ||
|
||
import com.netlify.hparcells.chaos.Chaos; | ||
import com.netlify.hparcells.chaos.ChaosEvent; | ||
import org.bukkit.event.HandlerList; | ||
|
||
public class FoodPoisoningEvent extends ChaosEvent { | ||
private FoodPoisoningListener foodPoisoningListener = new FoodPoisoningListener(); | ||
|
||
public void onEnable(String username, Chaos plugin) { | ||
plugin.getServer().getPluginManager().registerEvents(foodPoisoningListener, plugin); | ||
} | ||
|
||
public void onDisable(String username, Chaos plugin) { | ||
HandlerList.unregisterAll(foodPoisoningListener); | ||
} | ||
|
||
public String getName() { | ||
return "Food Poisoning"; | ||
} | ||
} |
Oops, something went wrong.