You are browsing as a guest. Sign up (or log in) to start making projects!

Caesar Plugin

  • 2 Devlogs
  • 5 Total hours

A minecraft plugin to check wich clients the players are using and their alts trough IP detection

Ship #1 Changes requested

I made Caesar, a simple Minecraft staff plugin that helps moderators check players, find possible alt accounts using IP history, and use a basic staff mode.
One of the hardest parts was fixing a bug where the plugin did not always give players their inventory back correctly after leaving staff mode. I also had to work with a database to save player information like IPs, join history, and client brand.
I am proud that the plugin is simple to use but still useful for real server moderation.
To test it, put the plugin in a Spigot/Paper server, join with a few accounts, then try /check , /alts , and /staffmode.
Staff permissions or op is needed to use the commands.

  • 2 devlogs
  • 5h
Try project → See source code →
Open comments for this post

3h 22m 29s logged

Today I spent around two hours working on a new feature for Caesar, my Minecraft staff plugin: Staff Mode.

The idea is simple: when a staff member runs /staffmode, the plugin saves their current inventory, armor, location, and gamemode.

Then it clears their inventory, puts them in creative mode, gives them vanish, and lets them do staff stuff without affecting their normal survival items.

At first I tried saving the inventory directly into a YAML file, but restoring it was not working properly. The data was there, but the player was not getting their items back correctly.
After debugging it for a while, I changed the system to serialize the inventory into a Base64 string. This makes the saved data easier to store and much more reliable to restore later.

Now, when the player exits Staff Mode, Caesar reads the saved data, restores the inventory and armor, teleports the player back, restores their gamemode, disables vanish, and cleans the saved data from the file.
This was not a huge feature, but it was a good learning experience.

0
Original post
@fraa2a

Today I spent around two hours working on a new feature for Caesar, my Minecraft staff plugin: Staff Mode.

The idea is simple: when a staff member runs /staffmode, the plugin saves their current inventory, armor, location, and gamemode.

Then it clears their inventory, puts them in creative mode, gives them vanish, and lets them do staff stuff without affecting their normal survival items.

At first I tried saving the inventory directly into a YAML file, but restoring it was not working properly. The data was there, but the player was not getting their items back correctly.
After debugging it for a while, I changed the system to serialize the inventory into a Base64 string. This makes the saved data easier to store and much more reliable to restore later.

Now, when the player exits Staff Mode, Caesar reads the saved data, restores the inventory and armor, teleports the player back, restores their gamemode, disables vanish, and cleans the saved data from the file.
This was not a huge feature, but it was a good learning experience.

Replies

Loading replies…

0
1
Open comments for this post

1h 26m 42s logged

Today i started making my own Minecraft plugin for admin management implementing an sql database

0
Original post
@fraa2a

Today i started making my own Minecraft plugin for admin management implementing an sql database

Replies

Loading replies…

0
1

Followers

Loading…