Home›Java›Mods›EasyReport
EasyReport
ModsJava

EasyReport

Java mod listed for Minecraft 1.12–1.15. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
Report plugin :
With one command you can easy report players.

Commands - Permissions:
- /report
- to see the reports you need the permission easyreport.alert

How to install:
[1]
Stop Your server
[2] put the plugin jar in your plugins folder
[3] start your server

What is comming in the next update:
-
A config.yml
- A message.yml
- MySQL database function

Spoiler: Source Code
Code (Java):

public class Main extends JavaPlugin {
  public static String prefix = ChatColor. DARK_AQUA + "[DMReport] " + ChatColor. BLUE ;
 
  public void onEnable ( ) {
    System . out . println ( ChatColor. GREEN + "[DMReport] is geactiveerd!!" ) ;
  }
 
  public void onDisable ( ) {
    System . out . println ( ChatColor. RED + "[DMReport] is afgesloten!!" ) ;
  }
 
  public boolean onCommand ( CommandSender sender, Command cmd, String commandLable, String [ ] args ) {
    if ( cmd. getName ( ) . equalsIgnoreCase ( "DMreport" ) ) {
      if ( ! ( sender instanceof Player ) ) {
        sender. sendMessage ( String . valueOf ( prefix ) + "Alleen spelers kunnen dit helaas!" ) ;
        return true ;
      }
      if ( args. length >= 2 ) {
        Player target = sender. getServer ( ) . getPlayer ( args [ 0 ] ) ;
        if ( target == null ) {
          sender. sendMessage ( String . valueOf ( prefix ) + "Speler " + args [ 0 ] + " is niet gevonden helaas!!" ) ;
        } else {
          String reason = "" ;
          int x = 0 ;
          byte b ;
          int i ;
          String [ ] arrayOfString ;
          for ( i = ( arrayOfString = args ) . length , b = 0 ; b < i ; ) {
            String a = arrayOfString [ b ] ;
            if ( x == 0 ) {
              x ++;
            } else {
              reason = String . valueOf ( reason ) + " " + a ;
            }
            b ++;
          }
          reason = reason. trim ( ) ;
          sender. sendMessage ( String . valueOf ( prefix ) + "Je hebt speler" + " " + target. getName ( ) + " " + "gereported voor: " + reason ) ;
          for ( Player p : Bukkit. getServer ( ) . getOnlinePlayers ( ) ) {
            if ( p. hasPermission ( "report.melding" ) )
              p. sendMessage ( String . valueOf ( prefix ) + sender. getName ( ) + " is gereported door " + target. getName ( ) + " voor de reden: " + reason ) ;
          }
        }
      } else {
        sender. sendMessage ( String . valueOf ( prefix ) + "Gebruik: /dmreport <speler> <reden>" ) ;
      }
    }
    return true ;
  }
}

Privacy policy:
-
Don't reupload this plugin as your own
- Don't decompile the plugin
- Dont't sell the plugin by your self

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

EasyReport is a free Minecraft Java mod. Compatible with Minecraft 1.12, 1.13, 1.14, 1.15. Downloaded 94 times (via Spigot). Download it and open it directly in the game.

Explore more