Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
Version 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Pequla committed Apr 19, 2021
1 parent b1d8d24 commit 5bb4ad4
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 4 deletions.
42 changes: 41 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,42 @@
# MainPlugin
The main server plugin, used on the server, handles the discord bot and the money rpc api endpoint
This is the main plugin on the SamiCraft Minecraft server, it handles the Discord bot and the MoneyRPC Balance API

### Discord Bot Features

Discord bot handles various features on the server, some of the most notable are:

- Verification and server whitelisting
- Twitch clips channel filter
- Minecraft server status

#### Command list:

- `!balance` - Displays your balance on the server
- `!botinvite` - Discord invite link for the bot
- `!help` - Command list and description
- `!moneyrpc` - Instructions on how to install the MoneyRPC mod
- `!myid` - Prints out your discord id
- `!seed` - Displays the current world's seed
- `!spawn` - Writes out current world's spawn location
- `!mcstatus` or `!online` - Displays current server status
- `!tutorial` - Youtube playlist containing all the plugin tutorials
- `!verify` - Links your Minecraft and Discord accounts

#### Admin command list:

- `!config` - Changes the server configuration
- `!force` - Verifies or removes users from whitelist
- `!rcon` - Executes a command on the server
- `!whois` - Retrieves details about a user/player

### MoneyRPC Balance API

You can get real time user balance data from the server using the following endpoint:

- `http://api.samifying.com/v1/balance?id=<discord-id>`

#### Additional API Information

- Rate limit is **1 call per second**
- Returned value is a single string
- User must be verified and must have joined the server once
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.samifying</groupId>
<artifactId>main-plugin</artifactId>
<version>1.3</version>
<version>1.4</version>
<packaging>jar</packaging>

<name>MainPlugin</name>
Expand Down Expand Up @@ -94,7 +94,7 @@
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>4.2.1_257</version>
<version>4.2.1_259</version>
</dependency>
<dependency>
<groupId>com.github.MilkBowl</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void execute(MainPlugin plugin, Member member, TextChannel channel, Strin
channel.sendMessage("Feature not yet implemented").queue();
}
} else {
channel.sendMessage("Bad arguments, options: `verify`, `role` or 'delete'").queue();
channel.sendMessage("Bad arguments, options: `verify`, `role` or `delete`").queue();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public void execute(MainPlugin plugin, Member member, TextChannel channel, Strin
.addField("!config", "Configures various properties", false)
.addField("!rcon", "Executes a command on the Minecraft server", false)
.addField("!whois", "Retrieves data relating verified players", false)
.addField("!force", "Manual verification and removal", false)
.build()).queue();
return;
}
Expand Down

0 comments on commit 5bb4ad4

Please sign in to comment.