• 0

    posted a message on Tell me what to code!
    Quote from TheEvanCat

    Build a program that sends promises of free Nigerian royal money to unsuspecting emails.

    already been done
















    totallydefinitelyhavenoremoteideaofwhatyouaretalkingaboutnopesorrydefinitelynotpokerface.longassfilename.jpg
    Posted in: Computer Science and Technology
  • 0

    posted a message on Tell me what to code!
    Quote from StyrofoamCup

    public String helloName(String Name) {
    }

    Fix this into saying "hello" +name
    If you can, then I found a solution to fixing that.

    Can I have the rest of the code? What are you trying to do, send a message?
    If your reference library is properly set up with bukkit, you can just do
      Player player = (Player) sender;
      if(commandLabel.equalsIgnoreCase("heal") || commandLabel.equalsIgnoreCase("h")){
       if (args.length == 0){ //heal = 0 args /heal thing = 1 args
            player.setHealth(20);
       }else if(args.length == 1){
            if(player.getServer().getPlayer(args[0])!=null);
            Player targetPlayer = player.getServer().getPlayer(args[0]);
            targetPlayer.setHealth(20);
            player.sendMessage(ChatColor.AQUA + "You've been healed!");
    import org.bukkit.Bukkit;
    //Goes at the top, bruv
    public boolean onCommand(CommandSender sender, Command cmd,  String commandLabel, String[] args){
      Player player = (Player) sender;
        if(player.getServer().getPlayer(args[0])!=null);
        Player targetPlayer = player.getServer().getPlayer(args[0]);
        targetPlayer.setHealth(20);
        player.sendMessage(ChatColor.AQUA + "Hello!");

    That won't work. I gotta run, I'll fix it later
    also that's just me screwing around with healing, so it's off topic, yay context.
    Posted in: Computer Science and Technology
  • 0

    posted a message on Tell me what to code!
    Quote from Kingtiger266

    Java good with making Algebra calculators? if so, make one that can find the value of a in the equation a/20 + 45 = 105

    It's been a hour, but sure, I will attempt that. AFAIK, Java can make calculations.
    (Although, if I use python I can do that much easier)
    I'm gonna do it with python. Will update soon.

    EDIT:
    BTW, a = 1200.
    :)
    Still doing it.

    EDIT2:
    I gotta go for tonight, 11:20 here...
    Here's what I had so far...

    def convertString(str):
    try:
    	 returnValue = int(str)
    except ValueError:
    	 returnValue = float(str)
    return returnValue
    def Use(a, B)/>:
    return convertString(a) + convertString(B)/>
    #Note to self, change syntax so it does operations accordingly
    keepProgramRunning = True
    print "Welcome to the Calculator!"
    while keepProgramRunning:
    print "Please choose what you'd like to do:"
    print "0: Use"
    print ": Quit Application"
    choice = raw_input()
    if choice == "0":
    	
    elif choice == "1":
    	 print "Bye!"
    	 keepProgramRunning = False
    else:
    	 print "Please choose a valid option."
    	 print "\n"

    Posted in: Computer Science and Technology
  • 0

    posted a message on Tell me what to code!
    Quote from Noah9988

    Taxidermy Mod.

    I'm not sure how I'd model things w/ Java, ATM I can really only do text based / simple text based things.
    Here's an example I guess

    package plugin.firstplugin;
    import java.util.logging.Logger;
    import org.bukkit.ChatColor;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    import org.bukkit.plugin.PluginDescriptionFile;
    import org.bukkit.plugin.java.JavaPlugin;
    public class First extends JavaPlugin{
    
    public final Logger logger = Logger.getLogger("Minecraft");
    public static First plugin;
    
    @Override
    public void onDisable() {
      PluginDescriptionFile pdfFile = this.getDescription();
      this.logger.info(pdfFile.getName() + "Peace yo, I'm out!");
    }
    
    @Override
    public void onEnable() {
      PluginDescriptionFile pdfFile = this.getDescription();
      this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + " Sup yo, Sam Cyanide In Da House! ");
    }
    
    public boolean onCommand(CommandSender sender, Command cmd,  String commandLabel, String[] args){
      Player player = (Player) sender;
      if(commandLabel.equalsIgnoreCase("heal") || commandLabel.equalsIgnoreCase("h")){
       if (args.length == 0){ //heal = 0 args /heal thing = 1 args
        player.setHealth(20);
       }else if(args.length == 1){
        if(player.getServer().getPlayer(args[0])!=null);
        Player targetPlayer = player.getServer().getPlayer(args[0]);
        targetPlayer.setHealth(20);
        player.sendMessage(ChatColor.AQUA + "You've been healed!");
       }else
        player.sendMessage(ChatColor.RED + "Player is not online, or does not exist.");
      }
     
      return false;
    }
    
    
    
    
    
    
    
    
    
    
    }

    That's a main java file for a bukkit plugin that will heal you. I'm also working on an abilities program with a friend, but I'm not going to post his source here, because I promised I won't :P
    Posted in: Computer Science and Technology
  • 0

    posted a message on creepiest image you have seen on the web?
    Quote from jakus12

    /b/, /r/gore, /r/space*****, /r/creepy, and /r/nosleep have all scared the crap out of me at some point or another. Unfortunately I can't find the images because one NSFW and two why would I save them in the first place. Also, /r/gore is the one that gets me the most. I'm usually fine with the others but I can't make it past the first page on /r/gore.

    /b/ that's it.
    Reddit isn't real, everyone knows that.
    Posted in: General Off Topic
  • 0

    posted a message on Tell me what to code!
    Sorta new to java.
    (Like a week experience, but now that I understand the concept I can generally make any basic plugin, program, etc.)
    I want people to give me ideas, to test my knowledge. Nothing too complex.
    Also, I can make bukkit plugins.
    Toss me a suggestion, I'll let you know if I can/will do it.
    Posted in: Computer Science and Technology
  • 0

    posted a message on The Dumbest Thing Anyone Has Ever Said
    Quote from Raynbow

    Any time someone says "yolo" then does something stupid.

    The correct use of "yolo" would be to do things even more safely, if anything.

    #YouWatchADoseOfBuckley
    Posted in: General Off Topic
  • 0

    posted a message on In-Game NBTEdit! Edit Mob Spawners & Attributes in game! FINALLY UPDATED!
    Hey, Just wanted to let you know, I've linked your mod in a tutorial video of mine :)
    Posted in: Minecraft Mods
  • 0

    posted a message on In-Game NBTEdit! Edit Mob Spawners & Attributes in game! FINALLY UPDATED!
    Is there any way to make a new line in the Lore tag? I tried <n> and it didn't do anything, attempting
    now, but any info is appreciated.
    Posted in: Minecraft Mods
  • 0

    posted a message on In-Game NBTEdit! Edit Mob Spawners & Attributes in game! FINALLY UPDATED!
    Is there any way to get this working with bukkit? I really like the SSP support, but all the Plugins on bukkit are not as user friendly as this, so I'd appreciate it if you knew/were able to implement support for bukkit.
    Posted in: Minecraft Mods
  • 0

    posted a message on Entropy RPG Needs Builders!
    Hey, if you need graphics or anything, let me know, I know what I'm doing.
    Posted in: Server Recruitment
  • 0

    posted a message on [CTM][Collection] Vechs' SUPER HOSTILE Series
    Vetches, I'd really appreciate it if you could Adf.ly some mediafire links, Because fileswap is slow and dinky. Please consider it, thanks.
    Posted in: Maps
  • 0

    posted a message on Kill someone with the above users item!
    Quote from AngeLestrange

    I sell the rifle on ebay and hire a mercenary

    next person gets an hourglass

    I move to the movie "In time" and use the hour glass to link into the time of the person I want to murder, flip it, and they die quickly. (Assuming it's a small hourglass)
    Next person gets a pizza, and some grape soda.
    Posted in: Forum Games
  • 0

    posted a message on The avatar above you is looking through your window.
    Quote from Muro45

    Uh That's just creepy. Floating head is staring though my window.

    OH GOD THERE'S A DRAGON OUTSIDE MY WINDOW AADASFDG
    *grabs abyssal whip*
    Posted in: Forum Games
  • 0

    posted a message on COUNT TO 100,000,000 FOR A WORLD RECORD!
    16651
    There have been 2 useless posts here.
    Posted in: Forum Games
  • To post a comment, please or register a new account.