Skip to content

Commit

Permalink
Version 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
CorwinDev committed Sep 14, 2022
1 parent ca344bb commit 54649c3
Show file tree
Hide file tree
Showing 7 changed files with 229 additions and 60 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# StreamerVSChat
StreamerVSChat is a open source project that allows you to play against your followers/subscribers.

![ThumbNail](https://user-images.githubusercontent.com/88144943/188877177-8514b504-0a9a-4eef-b870-19ea262ad705.png)

The plugin contains over 30 commands, and is fully customizable.

You can also add your own commands!

## How to use
1. Download the latest release from [here](https://github.com/CorwinDev/StreamerVSChat/releases)
2. Upload the file to your plugin folder
Expand Down Expand Up @@ -52,6 +55,16 @@ We have over 20 commands that you can use to control the streamer:
| !randomeffect or !randompoison | Gives streamer random poison |
| !fireball | Shoots fireball at streamer |
| !drop | Drops item in main hand |
| !silverfish | Summons silverfish on streamer |
| !vex | Summons vex on streamer |
| !chicken | Summons chicken on streamer |
| !bee | Summons angry bee on streamer |
| !day | Sets time to day |
| !night | Sets time to night |
| !peaceful | Sets difficulty to peaceful |
| !hard | Sets difficulty to hard |
| !easy | Sets difficulty to easy |
| !rename ~Name~ | Renames the streamer item currently holding|
// All ! above can be replaced with your custom prefix
// More commands coming soon //

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>StreamerVSChat</groupId>
<artifactId>StreamerVSChat</artifactId>
<version>2.0</version>
<version>2.1</version>
<packaging>jar</packaging>

<name>Streamer vs Chat</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull;
import nl.corwindev.streamervschat.commands;

import java.util.Arrays;

public class TestCommand implements CommandExecutor {
@Override
public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s, @NotNull String[] strings) {
Expand All @@ -17,7 +20,12 @@ public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command
return false;
}
commands.UserList.add(commandSender.getName());
commands.commandList.add(strings[0]);
if(strings[0].equalsIgnoreCase("rename")){
System.out.println(Arrays.toString(strings));
commands.commandList.add(strings[0] + " " + strings[1]);
}else{
commands.commandList.add(strings[0]);
}
commandSender.sendMessage(ChatColor.GREEN + "Added command: " + strings[0] + " to queue;");
return true;
}
Expand Down
Loading

0 comments on commit 54649c3

Please sign in to comment.