Skip to content
/ Fraud Public

Give the possibility to a minecraft owner/administrator to check if a player has some alts on the server.

Notifications You must be signed in to change notification settings

R-Gld/Fraud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fraud image.

Fraud

Fraud is a French java project of a Minecraft spigot plugin that allows a server owner / administrator to keep an eye on his players, see if any of them have a double-account.

  1. Installation
  2. API
  3. Contact
  4. Other Projects

Installation

  • Put the jar on the plugin directory of the server.
  • Restart the server or if you have the PlugMan (Sources) plugin on it, load the plugin with the command /plugman load Fraud.
  • Configure the plugin in the file config.yml. You can translate or just change the messages in this file.
  • Restart the server or just the plugin if you can.

API

import fr.Rgld_.Fraud.Spigot.Helpers.IPInfo;
import fr.Rgld_.Fraud.Spigot.Helpers.Utils;
import fr.Rgld_.Fraud.Spigot.api.Data;
import org.bukkit.Bukkit;

import java.net.InetSocketAddress;
import java.util.List;

public class Example {

    /**
     * Sends in the console the complete list of alts of the player given in parameters.
     *
     * @param pseudo The name in game of the player.
     */
    public void printAltsOf(String pseudo) {
        Data data = new Data();
        List<String> altsOfRgld_ = data.getAlts(pseudo);
        System.out.println("Alts of " + pseudo + ":");
        for (String alt : altsOfRgld_) {
            System.out.println("\t- " + alt);
        }
    }

    /**
     * Print in the console the geolocation of a player into the minecraft (spigot) server.
     * @param pseudo (a {@link String}) the name in game of the player that we want to obtain the geolocation.
     * @see Example#getLatitudeAndLongitudeOfAnIp(String)
     * @see Utils#getAddress(InetSocketAddress) to format the {@link InetSocketAddress} object to a string that is conforming to the database.
     */
    public void getLatitudeAndLongitudeOfAPlayer(String pseudo) {
        getLatitudeAndLongitudeOfAnIp(Utils.getAddress(Bukkit.getPlayer(pseudo).getAddress()));
    }

    /**
     * Print in the console the geolocation of an ip.
     * @param ip (a {@link String}) the ip that we want to obtain the geolocation.
     * @see Example#getLatitudeAndLongitudeOfAnIp(String)
     */
    public void getLatitudeAndLongitudeOfAnIp(String ip) {
        Data data = new Data();
        IPInfo ipInfoOfRgld_ = data.getIPInfo(ip);
        System.out.println(ip + " is located at these coordinates(lat/lon): " +
                                   ipInfoOfRgld_.getLatitude() + "/" + ipInfoOfRgld_.getLongitude()
                          );
    }
}

Contact

Discord

Emails

Twitter

Other Projects

WeatherBesac

Description

  • It's a Twitter bot that tweets at certain times of the day the current weather in the city of Besançon in France in the Doubs (a French subdivision). This tweet is accompanied by a photo taken at the time of the tweet from a known place in Besançon to be able to look at the state of the sky, for example.

Links